package com.cn.shiro_jwt_redis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.shiro_jwt_redis.pojo.Menu;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 张坤鹏
 * @Date: 2021/08/04/10:17
 * @Description:
 */
@Component
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> getRoot(Integer loginId);

    List<Menu> getChildren(Integer loginId,Integer parentId);

    List<Menu> getLoginAllMenu(Integer loginId);
}
